import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { SystemDictComponent } from './dict/dict.component';
import { SystemMenuComponent } from './menu/menu.component';
import { SystemParamComponent } from './param/param.component';
import { ResourceComponent } from './resource/resource.component';
import { RoleMenuComponent } from './role/role-menu.component';
import { RoleResourceComponent } from './role/role-resource.component';
import { SystemRoleComponent } from './role/role.component';
import { SystemTenantComponent } from './tenant/tenant.component';
import { ThirdUserComponent } from './third/third-user.component';
import { SystemUserClueComponent } from './user/user-clue.component';
import { ComponentsUserListBookComponent } from './user/user-list-book.component';
import { SystemUserSeaComponent } from './user/user-sea.component';
import { SystemUserComponent } from './user/user.component';

const routes: Routes = [
  { path: 'role', component: SystemRoleComponent },
  { path: 'menu', component: SystemMenuComponent },
  { path: 'resource', component: ResourceComponent },
  { path: 'role-menu', component: RoleMenuComponent },
  { path: 'role-resource', component: RoleResourceComponent },
  { path: 'user', component: SystemUserComponent },
  { path: 'user-clue', component: SystemUserClueComponent },
  { path: 'user-sea', component: SystemUserSeaComponent },
  { path: 'book', component: ComponentsUserListBookComponent },
  { path: 'dict', component: SystemDictComponent },
  { path: 'param', component: SystemParamComponent },
  { path: 'third', component: ThirdUserComponent },
  { path: 'tenant', component: SystemTenantComponent }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class SystemRoutingModule {}
